<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">会员管理</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('members/index')}">
        会员id:
        <input type="text" class="form-control" name="id" style="width: 200px;"
               value="{$members['id']|default=''}" placeholder="请输入会员id...">
        手机号:
        <input type="text" class="form-control" name="mobile" style="width: 200px;"
               value="{$members['mobile']|default=''}" placeholder="请输入手机号...">
        <input type="submit" class="btn btn-primary" value="搜索"/>

    </form>
    <form class="js-ajax-form" action="" method="post">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>会员名称</th>
                <th>金额</th>
                <th>手机号码</th>
                <th>邮箱</th>
                <th>总下载数</th>
                <th>已下载</th>
                <th width="65">状态</th>
                <th width="90">操作</th>
            </tr>
            </thead>
            <foreach name="user" item="vo">
                <tr>
                    <td><b>{$vo.id}</b></td>
                    <td>{$vo.user_nickname}</td>
                    <td>{$vo.coin}元</td>
                    <td>{$vo.mobile}</td>
                    <td>{$vo.user_email}</td>
                    <td>{$vo.downloads}</td>
                    <td>{$vo.num} 次</td>
                    <td>
                        <if condition="$vo['user_status'] eq '0'">
                                禁用
                        <elseif condition="$vo['user_status'] eq '1'"/>
                            正常
                        <else/>
                            未验证
                        </if>
                    </td>

                    <td>
                        <a href="{:url('members/sele',array('id'=>$vo['id']))}">详 情</a> |
                        <if condition="$vo['user_status'] eq '1'">
                            <a href="{:url('members/upd',array('id'=>$vo['id'],'user_status'=>0))}">禁用</a>
                        <else/>
                            <a href="{:url('members/upd',array('id'=>$vo['id'],'user_status'=>1))}" >通过</a>
                        </if>

                    </td>
                </tr>
            </foreach>

        </table>

        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>